-- GENERATED SPELL FOR [Undead Ravager] --


function spell0_11561(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(11978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11561', 6290, 1)
end

function Sorts_11561(pUnit, Event)
local choix_sorts_11561 = math.random(0, 0)
if choix_sorts_11561 == 0 then
pUnit:RegisterEvent('spell0_11561', 1, 1)
end
end

function mob11561_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11561', math.random(1500, 3000), 1)
end

function mob11561_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11561_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11561_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11561, 1, 'mob11561_Action')
RegisterUnitEvent(11561, 2, 'mob11561_Leave')
RegisterUnitEvent(11561, 3, 'mob11561_Kill')
RegisterUnitEvent(11561, 4, 'mob11561_Die')
